﻿namespace wasd
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int x=0, y=0;
            Console.WriteLine( );
            ConsoleKey input;
            do
            {
                Console.Clear();
                Console.SetCursorPosition(x, y);
                Console.Write("Hellow");
                input=Console.ReadKey(true).Key;
                switch(input)
                {  
                    case ConsoleKey.A:
                        if(x>0)x--;
                        break;
                    case ConsoleKey.S:
                        if(y<80)y++;
                        break;
                    case ConsoleKey.D:
                        if(x<80)x++;
                        break;
                    case ConsoleKey.W:
                        if(y>0)y--;
                        break;
                    default:break;

                 }
            }while(input!=ConsoleKey.Spacebar);
        }
    }
}